﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EIIS.FrameWork.Repository;
using EIIS.Infrastructure.Model.System.Authority;

namespace EIIS.Infrastructure.Repositories.System.Authority
{
    public interface IRoleRepository:IRepository<Role>
    {
        IQueryable<Role> LoadAllWithPage(out long total, int page, int rows, string order, string sort);
        IQueryable<Role> GetByIdWithMenuAndPermissions(string strId);
        /// <summary>
        /// 从其他角色继承
        /// </summary>
        /// <param name="role">新的角色</param>
        /// <param name="inheritedRoleId">被继续角色的ID</param>
        void SaveRole(Role role, string inheritedRoleId);
    }
}
